package fibTests;

public class Main {
	public static void main(String[] args) {
		System.out.println("n rec cycle dynamic matrix");
		for (int n = 10; n <= 40; n++) {
			System.out.print(n+" ");
			
			IFib fib = new FibRecNaive();
			fib.fib(n);
			int iter = fib.getLastIterationsCounter();
			System.out.print(iter+" ");
			
			fib = new FibCycle();
			fib.fib(n);
			iter = fib.getLastIterationsCounter();
			System.out.print(iter+" ");
			
			fib = new FibRecDynamic();
			fib.fib(n);
			iter = fib.getLastIterationsCounter();
			System.out.print(iter+" ");
			
			fib = new FibMatrix();
			fib.fib(n);
			iter = fib.getLastIterationsCounter();
			System.out.println(iter);
		}
	}

}
